#include "PageTable.h"

PageTable::PageTable(int pSize)
{
	pageSize = pSize;
}

PageTable::~PageTable()
{

}

int PageTable::ConvertIdToAdd(int pageId)
{
	return pageId * pageSize;
}

int PageTable::ConvertAddToId(int paddress)
{
	return (int)(paddress / pageSize);
}
